package com.changgou.entity.exception;

/**
 * Created by 柱子 on 2020/10/16 12:31   自定义的异常
 */
public class Business40Exception extends RuntimeException {

    //导入状态码
    private EResultCode eResultCode;

    //有参构造 引用指向父类
    public Business40Exception(EResultCode eResultCode) {
        super();
        this.eResultCode = eResultCode;
    }


    //提供Get方法
    public EResultCode geteResultCode() {
        return eResultCode;
    }
}
